<?php
    require_once '../include.php';
    checkLogined();
?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>大大电子商务后台管理系统</title>

    <!-- BOOTSTRAP STYLES-->
    <link href="styles/css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="styles/css/font-awesome.css" rel="stylesheet" />
    <!--CUSTOM BASIC STYLES-->
    <link href="styles/css/basic.css" rel="stylesheet" />
    <!--CUSTOM MAIN STYLES-->
    <link href="styles/css/custom.css" rel="stylesheet" />
    <!-- GOOGLE FONTS-->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>

<body>
<div id="wrapper">
<nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="index.html">大大电子商务</a>
    </div>

    <div class="header-right">
        <a href="doAdminAction.php?act=logout" class="btn btn-danger" title="Logout"><i class="fa fa-sign-out fa-2x"></i></a>
    </div>
</nav>
<!-- /. NAV TOP  -->
<nav class="navbar-default navbar-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav" id="main-menu">
            <li>
                <div class="user-img-div">
                    <img src="styles/img/user.png" class="img-thumbnail" />

                    <div class="inner-text">
                        欢迎您：<?php
                        if(isset($_SESSION['adminName'])){
                            echo $_SESSION['adminName'];
                        }elseif(isset($_COOKIE['adminName'])){
                            echo $_COOKIE['adminName'];
                        }
                        ?>
                        <br />
                        <td><?php echo "今天是 " . date("Y-m-d")?>日</td>
                    </div>
                </div>

            </li>


            <li>
                <a class="active-menu" href="index.php"><i class="fa fa-dashboard "></i>主页</a>
            </li>
            <li>
                <a href="#"><i class="fa fa-desktop "></i>商品管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="addPro.php"><i class="fa fa-toggle-on"></i>添加商品</a>
                    </li>
                    <li>
                        <a href="listPro.php"><i class="fa fa-bell "></i>商品列表</a>
                    </li>
                    <li>
                        <a href="listProImages.php"><i class="fa fa-bell "></i>商品图片&简介管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#"><i class="fa fa-yelp "></i>分类管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="addCate.php"><i class="fa fa-coffee"></i>添加分类</a>
                    </li>
                    <li>
                        <a href="listCate.php"><i class="fa fa-flash "></i>分类管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#"><i class="fa fa-flash "></i>订单管理</a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="listlist.php"><i class="fa fa-desktop "></i>订单查询</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#"><i class="fa fa-bicycle "></i>用户管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">

                    <li>
                        <a href="addUser.php"><i class="fa fa-desktop "></i>添加用户</a>
                    </li>
                    <li>
                        <a href="listUser.php"><i class="fa fa-code "></i>用户列表</a>
                    </li>


                </ul>
            </li>
            <li>
                <a href="#"><i class="fa fa-bicycle "></i>管理员管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">

                    <li>
                        <a href="addAdmin.php"><i class="fa fa-desktop "></i>添加管理员</a>
                    </li>
                    <li>
                        <a href="listAdmin.php"><i class="fa fa-code "></i>管理员列表</a>
                    </li>


                </ul>
            </li>

            <li>
                <a href="blank.html"><i class="fa fa-square-o "></i>Blank Page</a>
            </li>
        </ul>

    </div>

</nav>
    <!-- /. NAV SIDE  -->
    <div id="page-wrapper">
        <div id="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <h1 class="page-head-line">管理员告示栏</h1>
                    <h1 class="page-subhead-line">这是一些通知事项 </h1>

                </div>
            </div>
            <!-- /. ROW  -->
            <div class="row">
                <div class="col-md-4">
                    <div class="main-box mb-red">
                        <a href="#">
                            <i class="fa fa-cog fa-5x"></i>
                            <h5>系统版本：WIN NT</h5>
                        </a>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="main-box mb-dull">
                        <a href="#">
                            <i class="fa fa-wrench fa-5x"></i>
                            <h5>服务器版本：IIS 10</h5>
                        </a>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="main-box mb-pink">
                        <a href="#">
                            <i class="fa fa-cloud fa-5x"></i>
                            <h5>环境配置：PHP7 &FAST CGI</h5>
                        </a>
                    </div>
                </div>

            </div>
            <div class="row">
                <div class="col-md-4">
                    <div class="main-box mb-dull">
                        <a href="#">
                            <i class="fa fa-eye fa-5x"></i>
                            <h5>超级管理员：admin</h5>
                        </a>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="main-box mb-pink">
                        <a href="#">
                            <i class="fa fa-wheelchair fa-5x"></i>
                            <h5>运营维护：白尚林</h5>
                        </a>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="main-box mb-red">
                        <a href="#">
                            <i class="fa fa-gamepad fa-5x"></i>
                            <h5>成功项目：大大电子商务管理系统</h5>
                        </a>
                    </div>
                </div>

            </div>
            <div class="row">
                <div class="col-md-4">
                    <div class="main-box mb-pink">
                        <a href="#">
                            <i class="fa fa-wheelchair fa-5x"></i>
                            <h5>数据库：MySql 5.7.14</h5>
                        </a>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="main-box mb-red">
                        <a href="#">
                            <i class="fa fa-gamepad fa-5x"></i>
                            <h5>系统版本：V17.5.4.3</h5>
                        </a>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="main-box mb-dull">
                        <a href="#">
                            <i class="fa fa-eye fa-5x"></i>
                            <h5>服务器域名：localhost</h5>
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <!-- /. PAGE INNER  -->
    </div>
</div>
<div id="footer-sec">
    &copy; 2017 白尚林 | More Templates
</div>
    <script type="text/javascript">
    	function show(num,change){
	    		var menu=document.getElementById(num);
	    		var change=document.getElementById(change);
	    		if(change.innerHTML=="+"){
	    				change.innerHTML="-";
	        	}else{
						change.innerHTML="+";
	            }
    		   if(menu.style.display=='none'){
    	             menu.style.display='';
    		    }else{
    		         menu.style.display='none';
    		    }
        }
    </script>
<!-- /. FOOTER  -->
<!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
<!-- JQUERY SCRIPTS -->
<script src="scripts/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="scripts/js/bootstrap.js"></script>
<!-- METISMENU SCRIPTS -->
<script src="scripts/js/jquery.metisMenu.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="scripts/js/custom.js"></script>
</body>
</html>